#ifndef __UIPHONEBOOK__H__
#define __UIPHONEBOOK__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"
#include	"PhoneBookList.h"

typedef enum _tagPhoneBookWndBtnDisplay
{
	PHONE_BOOK_WND_ONE = 0,
	PHONE_BOOK_WND_TWO,
	PHONE_BOOK_WND_DEL_ALL,
	PHONE_BOOK_WND_DEL_ONE,
	MAX_PHONE_BOOK_WND_BTN,
} PHONE_BOOK_WND_BTN;

class UiPhoneBookWnd :
	public UiWin
{
public:
	UiPhoneBookWnd();
	~UiPhoneBookWnd();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
public:
	iUiButton m_BtnPhoneBookWnd[MAX_PHONE_BOOK_WND_BTN];
	ImagingHelper	*m_PhoneBookWndBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
	CPhoneBookList m_listPhoneBook;
	BOOL			m_firstEntry;

};

#endif